package com.abing.api.config;

import com.abing.api.client.StarryApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author CaptainBing
 * @Date 2024/8/21 20:41
 * @Description
 */
@Data
@Configuration
@ConfigurationProperties("starry.client")
public class StarryApiConfig {


    private String accessKey;

    private String secretKey;

    private String initUrl;

    @Bean
    public StarryApiClient starryApiClient(){
        return new StarryApiClient(accessKey,secretKey,initUrl);
    }


}
